//
//  HistoryCell.h
//  LabanBrowser
//
//  Created by -Xh- on 3/6/13.
//  Copyright (c) 2013 VNG. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "TwoStateButton.h"
#import "HistoryModel.h"
#import "StaticVariables.h"
@protocol HistoryCellDelegate <NSObject>

@optional
-(void)saveBookmarkToDBWithHistory:(HistoryModel*)_currentHistory;
-(void)removeBookmarkFromDBWithHistory:(HistoryModel*)_currentHistory;
@end


@interface HistoryCell : UITableViewCell<TwoStateButtonDelegate>
@property (strong, nonatomic) IBOutlet UILabel *titleLabel;
@property (strong, nonatomic) IBOutlet UILabel *urlLabel;
@property (strong, nonatomic) IBOutlet UIImageView *thumbnail;
@property (strong, nonatomic) IBOutlet TwoStateButton *starButton;
//Hold value from uitableview, it is used to return history for the HistoryViewController when user press the StarButton
@property (strong, nonatomic) HistoryModel *currentHistory;
@property (strong,nonatomic) id<HistoryCellDelegate> delegate;

-(void)setUpStyle;

@end
